package fun.easycode.webterminal.service.dto;

import fun.easycode.webterminal.common.datafill.FillField;
import fun.easycode.webterminal.common.datafill.FillSource;
import fun.easycode.webterminal.dao.MachineMapper;
import fun.easycode.webterminal.dao.TunnelType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class MachineTunnelDTO {
    private String id;
    private String name;
    private String machineId;
    @FillField(queryPk = "machineId"
            , source = @FillSource(value = MachineMapper.class, sourceProperty = "name"))
    private String machineName;

    @Schema(description = "隧道类型 1/本地转发 2/远程转发 3/动态转发")
    private TunnelType type;
    private String localIp;
    private Integer localPort;
    private String remoteIp;
    private Integer remotePort;
    private Boolean start;

}
